﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<Brjostagjof_H4.Models.ContactUs>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
		Brjóstagjöf.is | Ábendingar
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h3>Skoða ábendingu</h3>
    <table id="main-table">
        <tr>

            <td id="main-table-left">
                <fieldset>
                    <legend>Fields</legend>
        
                    <div class="display-label">Netfang</div>
                    <div class="display-field"><%: Model.email %></div>
        
                    <div class="display-label">Fyrirsögn</div>
                    <div class="display-field"><%: Model.subj %></div>
        
                    <div class="display-label">Ábending</div>
                    <div class="display-field"><%: Model.txt %></div>        
        
                    <div class="display-label">Hvenar sent</div>
                    <div class="display-field"><%: String.Format("{0:g}", Model.posted) %></div>
        
                </fieldset>
                <p>
                    <%: Html.ActionLink("Til baka í allar ábendingar", "ContactUsShowAll") %>
                </p>
            </td>

            <td id="main-table-right">
                <div class="options">
                    <% if (User.IsInRole("Administrators")){Html.RenderPartial("~/Views/Home/ProfileAdminMenu.ascx", "Model");} %>
                    <% else if (User.IsInRole("Professionals")) { Html.RenderPartial("~/Views/Home/ProfileProMenu.ascx", "Model"); } %>
                    <% else { Html.RenderPartial("~/Views/Home/ProfileMenu.ascx", "Model"); } %>
                </div>
            </td>

        </tr>
    </table>

</asp:Content>

